package com.wtzz.police.base.repository;

import com.wtzz.police.base.entity.Department;
import com.wtzz.police.base.repository.base.BaseRepository;

import java.util.Optional;

/**
 * 部门的Repository
 */
public interface DepartmentRepository extends BaseRepository<Department, String> {
    Optional<Department> findByName(String name);

    Optional<Department> findByCode(String code);

}
